home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / gdb-4.12 / gdb / config / tm-sysv4.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-03  |  2.2 KB  |  44 lines

  1. /* Macro definitions for GDB on all SVR4 target systems.
  2.    Copyright 1991, 1992, 1993 Free Software Foundation, Inc.
  3.    Written by Fred Fish at Cygnus Support (fnf@cygnus.com).
  4.  
  5. This file is part of GDB.
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. /* For SVR4 shared libraries, each call to a library routine goes through
  22.    a small piece of trampoline code in the ".init" section.  Although each
  23.    of these fragments is labeled with the name of the routine being called,
  24.    the gdb symbol reading code deliberately ignores them so it won't confuse
  25.    them with the real functions.  It does however know about the label that
  26.    precedes all of the fragments, which is "_init".  Thus when we lookup a
  27.    function that corresponds to a PC value which is in one of the trampoline
  28.    fragments, we'll appear to be in the function "_init".  The following
  29.    macro will evaluate to nonzero when NAME is valid and matches "_init".
  30.    The horribly ugly wait_for_inferior() routine uses this macro to detect
  31.    when we have stepped into one of these fragments. */
  32.  
  33. #define IN_SOLIB_TRAMPOLINE(pc,name) ((name) && (STREQ ("_init", name)))
  34.  
  35. /* It is unknown which, if any, SVR4 assemblers do not accept dollar signs
  36.    in identifiers.  The default in G++ is to use dots instead, for all SVR4
  37.    systems, so we make that our default also.  FIXME: There should be some
  38.    way to get G++ to tell us what CPLUS_MARKER it is using, perhaps by
  39.    stashing it in the debugging information as part of the name of an
  40.    invented symbol ("gcc_cplus_marker$" for example). */
  41.  
  42. #undef CPLUS_MARKER
  43. #define CPLUS_MARKER '.'
  44.